Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary assignment and assertions #4313

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

stweil
Copy link
Contributor

@stweil stweil commented Sep 3, 2024

No description provided.

++certainty_count;
best_choice = res_it.word()->best_choice;
mean_certainty = best_choice->certainty();
certainty_count = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't change behavor?

++certainty_count; vs certainty_count = 1;

Copy link
Contributor Author

@stweil stweil Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial value 0 and a single increment gives value 1. There is no loop around it, only a switch statement.

@stweil stweil merged commit 1b22245 into tesseract-ocr:main Sep 3, 2024
7 checks passed
@stweil stweil deleted the assignments branch September 3, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants